package com.medical.medical.mapper;

import com.medical.medical.entity.Card;
import com.medical.medical.entity.Drug;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DrugMapper {
    List<Drug> getDrugByRecordId(int recordId);

    List<Drug> getAllDrug(String drugName);

    int addDrug(Drug drug);


    int deleteDrugById(@Param("drugId") int account);

    Card getCard(int pId);

    int editBalance(double balance);
}
